<?php

$server = new Swoole\Server('0.0.0.0',9502,SWOOLE_PROCESS,SWOOLE_SOCK_UDP);

$server->set([
	'worker_num'=>4,
	'max_request'=>500
]);

$server->on('packet',function($server,$data,$client_info){
	$server->sendto($client_info['address'],$client_info['port'],$data);
});

$server->start();

